/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.domain;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Gerard
 */
public class User implements Serializable {
    
    private String userId;
    
    private String password;
    
    private String name;
    
    private String surname1;
    
    private String surname2;
    
    private String company;
    
    private String email;
    
    private String adress;
    
    private Integer postalCode;
    
    private String city;
    
    private Integer telephone;
    
    private Integer mobileTelephone;
    
    private Integer roleId;

    private Date creationDate;
    
    private String creationUser;
    
    private Date inactivationDate;
    
    private String inactivationUser;
    
    private Date recordDate;

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getCreationUser() {
        return creationUser;
    }

    public void setCreationUser(String creationUser) {
        this.creationUser = creationUser;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getInactivationDate() {
        return inactivationDate;
    }

    public void setInactivationDate(Date inactivationDate) {
        this.inactivationDate = inactivationDate;
    }

    public String getInactivationUser() {
        return inactivationUser;
    }

    public void setInactivationUser(String inactivationUser) {
        this.inactivationUser = inactivationUser;
    }

    public Integer getMobileTelephone() {
        return mobileTelephone;
    }

    public void setMobileTelephone(Integer mobileTelephone) {
        this.mobileTelephone = mobileTelephone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(Integer postalCode) {
        this.postalCode = postalCode;
    }

    public Date getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(Date recordDate) {
        this.recordDate = recordDate;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getSurname1() {
        return surname1;
    }

    public void setSurname1(String surname1) {
        this.surname1 = surname1;
    }

    public String getSurname2() {
        return surname2;
    }

    public void setSurname2(String surname2) {
        this.surname2 = surname2;
    }

    public Integer getTelephone() {
        return telephone;
    }

    public void setTelephone(Integer telephone) {
        this.telephone = telephone;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb  .append(name).append(" ")    
            .append(surname1).append(" ")    
            .append(surname2).append(" ");
        return sb.toString();
    }
}
